* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  font-family: "微软雅黑", sans-serif;
  position: relative;
  overflow: hidden;
}

/* 背景图片样式 */
.background-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background-image: url('../img/previewFix.jpg'); /* 这里替换为你的图片路径 */
  background-size: cover;
  background-position: center;
  filter: blur(5px); /* 添加模糊效果 */
  transform: scale(1.05); /* 放大以避免模糊边缘 */
}

/* 背景叠加层，增强文字可读性 */
.background-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.6));
}

.login-container {
  height: 600px;
  width: 600px;
  padding: 30px 40px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  text-align: center;
  z-index: 1;
  transform: translateY(-10px);
  animation: fadeIn 0.6s ease-out;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.row {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.row label {
  width: 80px;
  text-align: right;
  margin-right: 10px;
  color: #333;
}
.login-container button {
  width: 100%; /* 按钮宽度占满父容器 */
  padding: 10px; /* 按钮内边距 */
  margin-top: 30px; /* 按钮顶部外边距 */
}
.row input {
  flex: 1;
  padding: 12px 15px;
  margin: 0; /* 取消原 margin，由 .row 的 margin 控制间距 */
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 15px;
  background-color: rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(-10px); }
}

.login-container h2 {
  margin-bottom: 20px;
  color: #333;
  font-size: 22px;
}

.login-container input {
  display: block;
  width: 100%;
  padding: 10px;
  margin: 10px 0;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 6px;
  font-size: 14px;
  outline: none;
  background-color: rgba(255, 255, 255, 0.1);
  color: #333;
  transition: border-color 0.3s ease;
}

.login-container input:focus {
  border-color: #646cff;
}

.login-container button {
  width: 100%;
  padding: 10px;
  background-color: rgba(100, 108, 255, 0.8);
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s ease;
  margin-bottom: 20px; /* 添加底部外边距来设置按钮间隔 */
}

.login-container button:last-child {
  margin-bottom: 0; /* 最后一个按钮去掉底部外边距 */
}

.login-container button:hover {
  background-color: rgba(75, 82, 209, 0.8);
}

/* 响应式设计 */
@media (max-width: 600px) {
  .login-container {
    width: auto;
    padding: 25px 30px;
  }
}